$(document).ready(function() {
	$("#edit-user-form").validate({
		messages: {
			login : "Champ requis",
			lastname: "Champ requis",
			firstname: "Champ requis",
			email : {
				required: "Champ requis",
				email: "Entrez une adresse e-mail valide"
			}
		}
	});
	
	$("#change-user-password-form").validate({
		rules: {
			password: {
				required: true,
				minlength: 6
			},
			passwordconf: {
				required: true,
				minlength: 6
			}
		},
		messages: {
			password: {
				required: "Champ requis",
				minlength: "Le mot de passe doit contenir au moins 6 caract&egrave;res"
			},
			passwordconf: {
				required: "Champ requis",
				minlength: ""
			}
		}
	});
});